<?php echo $__env->make("layout.nav", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->startSection("content"); ?>

<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">
            <div class="fly-panel" style="margin-bottom: 0;">
                <div class="fly-panel-title fly-filter">
                    <a <?php if(request('is_jing')==''&& request('status')==''): ?> class="layui-this" <?php endif; ?>  href="/question?cate_id=<?php echo e(request('cate_id')); ?>">综合</a>
                    <span class="fly-mid"></span>
                    <a <?php if(request('status')==='0'): ?> class="layui-this" <?php endif; ?>  href="/question?status=0&cate_id=<?php echo e(request('cate_id')); ?>">未结</a>
                    <span class="fly-mid"></span>
                    <a <?php if(request('status')==1): ?> class="layui-this" <?php endif; ?>  href="/question?status=1&cate_id=<?php echo e(request('cate_id')); ?>">已结</a>
                    <span class="fly-mid"></span>
                    <a <?php if(request('is_jing')==1): ?> class="layui-this" <?php endif; ?> href="/question?is_jing=1&cate_id=<?php echo e(request('cate_id')); ?>">精华</a></div>
                <ul class="fly-list">
                    <?php $__currentLoopData = $questions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $question): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li>
                        <a href="/question/<?php echo e($question->id); ?>/show" class="fly-avatar">
                            <img src="<?php echo e($question->user->face); ?>" alt="空白处"></a>
                        <h2>
                            <a class="layui-badge"><?php echo e($question->cate->name); ?></a>
                            <a href="/question/<?php echo e($question->id); ?>/show"><?php echo e($question->title); ?></a></h2>
                        <div class="fly-list-info">
                            <a href="/user/<?php echo e($question->user->id); ?>" link>
                                <cite><?php echo e($question->user->name); ?></cite></a>
                            <span><?php echo e($question->created_at->diffForHumans()); ?></span>
                            <span class="fly-list-kiss layui-hide-xs" title="悬赏飞吻">
                                        <i class="iconfont icon-kiss"></i><?php echo e($question->kiss); ?></span>
                            <span class="fly-list-nums">
                                        <i class="iconfont icon-pinglun1" title="回答"></i>0</span>
                        </div>
                        <div class="fly-list-badge"></div>
                    </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
                <div id="pull_right">
                    <div class="pull-right">
                        <?php echo e($questions->appends($where)->links()); ?>

                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <dl class="fly-panel fly-list-one">
                <dt class="fly-panel-title">本周热议</dt>
                <?php $__currentLoopData = $hotQuestions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $question): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <dd>
                        <a href="/question/<?php echo e($question->id); ?>/show"><?php echo e($question->title); ?></a>
                        <span>
                                <i class="iconfont icon-pinglun1"></i><?php echo e($question->answers_count); ?></span>
                    </dd>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </dl>
            <div class="fly-panel">
                <div class="fly-panel-title">钻级赞助商
                    <span class="fly-mid"></span>
                    <a href="/jie/15697/" class="fly-link fly-joinad    ">我要加入</a></div>
                <div class="fly-panel-main" style="padding: 13px 15px;">
                    <a href="/jie/15697/" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: #393D49;">虚席以待</a></div>
            </div>
            <div class="fly-panel" style="padding: 20px 0; text-align: center;">
                <img  style="max-width: 100%;" alt="layui">
                <p style="position: relative; color: #666;">微信扫码关注 layui 公众号</p></div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make("layout.main", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>